package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.ReservationDto;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.TimeCountVo;

import java.time.LocalDateTime;
import java.util.List;

public interface ReservationService {
    /**
     * 添加预约信息
     * @param dto 预约信息
     */
    ResponseResult add(ReservationDto dto);

    /**
     * 分页查询预约信息
     * @param pageNum
     * @param pageSize
     * @param status
     * @return
     */
    PageResponse<Reservation> queryByPage(Integer pageNum, Integer pageSize, Integer status,Long userId);

    /**
     * 删除预约
     * @param id
     * @return
     */
    int deleteReservation(Long id);

    /**
     * 取消预约
     * @return
     */
    ResponseResult updateStatus(Reservation reservation);


    List<TimeCountVo> countByTime(LocalDateTime of);


}
